"""
Token DB
"""

from bson import ObjectId

from db_base.mongodb_db.base import CollectionBase


class _Token(CollectionBase):
    """
    Token

    >>> {
    ...     "_id" : ObjectId("66d4ab96cae30125abfd4j81"),
    ...     "key": "'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWJqZWN0IjoiRkFTVCIsImlzc3VlX3RpbWUiOiIyMDI0LTAyLTA1IDEwOjIwOjQyIiwiZXhwaXJlX3RpbWUiOiIyMDI0LTAyLTEyIDEwOjIwOjQyIiwidXNlcl9jb2RlIjoiVVNFUl8yNDAyMDQwMzE4MDY0NDgifQ.-_quIPwSviSVfJ0IjrrHj8muLvhuivcy7vzkBMc5_p4'",  # noqa
    ...     "issue_time" : "2023-08-10 17:19:18",
    ...     "expire_time" : "2023-08-17 17:19:18",
    ...     "user_code" : "USER_240204031806448"
    ... }
    """

    collection_name: str = "user_token"


token: _Token = _Token()
""" Token """
